package com.huat.sportmeetingmanagement.dao;

import com.github.pagehelper.Page;
import com.huat.sportmeetingmanagement.entity.Admin;
import com.huat.sportmeetingmanagement.entity.Player;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PlayerDao {
    Page<Player> getPlayers(Player player);
    List<Admin> queryAdmin(Admin admin);
    Player getPlayerById(Integer id);
    Integer addPlayer(Player player);
    Integer updatePlayer(Player player);
    Integer deletePlayer(String id);
    Integer deletePlayers(String[] ids);
    Integer resetPassword(Admin admin);
}

